package com.java65;

import java.util.Scanner;

public class practice6 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入一个0-2的整数");
        int num = input.nextInt();

        if(num>=0&&num<=2){
            switch (num){
                case 0 :
                    System.out.println("你出的是石头");
                    break;
                case 1 :
                    System.out.println("你出的是剪刀");
                    break;
                case 2 :
                    System.out.println("你出的是布");
                    break;
                default:
                    break;
            }
            System.out.println("是否继续出拳?(y/n)");
            String select = input.next();
            }
        }
    }
